//
//  WBBaseTableViewController.swift
//  XLWibo-Swift
//
//  Created by 王林 on 2016/11/12.
//  Copyright © 2016年 木木. All rights reserved.
//

import UIKit

class WBBaseTableViewController: UITableViewController ,WBBaseViewDelegate{

    //定义用户登录
    var login = WBUserAccessViewModel.shared.userLogin
    
    lazy var visitorView :WBBaseView = WBBaseView()
    
    
    override func viewDidLoad() {
        super.viewDidLoad()


    }
    
    override func loadView() {
        if login{
            super.loadView()
        }
        else{
        self.view = visitorView
        visitorView.deleagte = self
        }
        
    }
    func clickLoginDelegate(){
        print("点击了登录")
        
        let tarVC = WBOAuthViewController()
        let navi = WBNavigationController(rootViewController: tarVC)
        
        self.present(navi, animated: true)
        
        
    }
    
    func clickRegister(){
        print("点击了注册")
    }

   
}
